<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>

</head>

<body>
  <h2>分数：</h2>
  <div class="box">
    <div class="p1"></div>
    <div class="color"></div>
  </div>
  <script>
    const num = document.querySelector('h2');
    const box = document.querySelector('.box');
    const p1 = document.querySelector('.p1');
    const color = document.querySelector('.color');

  </script>
</body>

</html>